package com.foronenet.upd;

import com.foronenet.mud.ParseUtils;

import java.io.IOException;
import java.net.*;

public class UdpClientDemo {
    public static void main(String[] args) throws IOException {
        DatagramSocket socket = new DatagramSocket(6699);
        byte[] buffer = ParseUtils.hexStringToBytes("E803640014000A00E80700");
        String ip = "192.168.0.2";
//        String ip = "192.168.31.85";
        DatagramPacket packet = new DatagramPacket(buffer, buffer.length, InetAddress.getByName(ip), 8081);

        socket.send(packet);
        socket.close();
    }
}
